package com.itheima.mapper;

import com.itheima.entity.Category;
import com.itheima.entity.Movies;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {
    @Select("select * from tb_category order by order_no desc")
    List<Category> findList();

    List<Category> findList2(Integer cid, String keyword);

    Category getByid(String id);

    void updateById(Category category);

    void insert(Category category);

    void deleteById(String id);

    void deleteBatch(Integer[] ids);

}
